package com.yxd.server;

import com.yxd.contract.HttpProcessor;
import com.yxd.processor.ServletProcessor;
import com.yxd.processor.StaticResourceProcessor;

/**
 * Created by Administrator on 2016/6/15.
 */
@Deprecated
public class Dispatcher {
    public static void dispatch(Request request, Response response) {
        String uri = request.getUri();
        HttpProcessor processor;
        if (uri.startsWith("/s")) {
            processor = new ServletProcessor();
        } else {
            processor = new StaticResourceProcessor();
        }
//      processor.processor(request,response);
    }
}
